package com.wl.application.service.impl;

import com.wl.application.entity.Emp;
import com.wl.application.mapper.EmpMapper;
import com.wl.application.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wl
 * @version 1.0
 * @date 2022/6/14
 * @description:
 */
@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private EmpMapper empMapper;

    @Override
    public List<Emp> list() {

        return empMapper.list();
    }

    @Override
    public int addEmp(Emp emp) {
        return empMapper.addEmp(emp);
    }

    @Override
    public int updateEmp(Emp emp) {
        return empMapper.updateEmp(emp);
    }

    @Override
    public int delEmp(Integer eno) {
        return empMapper.delEmp(eno);
    }
}
